package com.ruoyi.dailyoperations.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dailyoperations.mapper.WarrantyFollowMapper;
import com.ruoyi.dailyoperations.domain.WarrantyFollow;
import com.ruoyi.dailyoperations.service.IWarrantyFollowService;

/**
 * 单据追踪Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-18
 */
@Service
public class WarrantyFollowServiceImpl implements IWarrantyFollowService 
{
    @Autowired
    private WarrantyFollowMapper warrantyFollowMapper;

    /**
     * 查询单据追踪
     * 
     * @param id 单据追踪主键
     * @return 单据追踪
     */
    @Override
    public WarrantyFollow selectWarrantyFollowById(Long id)
    {
        return warrantyFollowMapper.selectWarrantyFollowById(id);
    }

    /**
     * 查询单据追踪列表
     * 
     * @param warrantyFollow 单据追踪
     * @return 单据追踪
     */
    @Override
    public List<WarrantyFollow> selectWarrantyFollowList(WarrantyFollow warrantyFollow)
    {
        return warrantyFollowMapper.selectWarrantyFollowList(warrantyFollow);
    }

    /**
     * 新增单据追踪
     * 
     * @param warrantyFollow 单据追踪
     * @return 结果
     */
    @Override
    public int insertWarrantyFollow(WarrantyFollow warrantyFollow)
    {
        return warrantyFollowMapper.insertWarrantyFollow(warrantyFollow);
    }

    /**
     * 修改单据追踪
     * 
     * @param warrantyFollow 单据追踪
     * @return 结果
     */
    @Override
    public int updateWarrantyFollow(WarrantyFollow warrantyFollow)
    {
        return warrantyFollowMapper.updateWarrantyFollow(warrantyFollow);
    }

    /**
     * 批量删除单据追踪
     * 
     * @param ids 需要删除的单据追踪主键
     * @return 结果
     */
    @Override
    public int deleteWarrantyFollowByIds(Long[] ids)
    {
        return warrantyFollowMapper.deleteWarrantyFollowByIds(ids);
    }

    /**
     * 删除单据追踪信息
     * 
     * @param id 单据追踪主键
     * @return 结果
     */
    @Override
    public int deleteWarrantyFollowById(Long id)
    {
        return warrantyFollowMapper.deleteWarrantyFollowById(id);
    }
}
